#ifndef SQLLITE_H
#define SQLLITE_H
#include <QtSql>
#include <QString>

class SqlLite
{
private:
    QSqlDatabase db;
    QString lastErrorMessage;
    QSqlQuery *query;

public:
    SqlLite();
    bool connect(QString path);
    void disconnect();
    bool executeCommand(QString sqlCommand);
    bool checkDatabase(QString path);

    //Getter Functions
    QString getLasterErrorMessage();
    QSqlQuery* getQuery();
    int getLastIndex();
};

#endif // SQLLITE_H
